New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@carbon/layout

Package Overview
Dependencies
Maintainers
9
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carbon/layout

Layout helpers for digital and software products using the Carbon Design System

  • 11.29.0
  • next
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
106K
increased by7.05%
Maintainers
9
Weekly downloads
 
Created

What is @carbon/layout?

@carbon/layout is a package that provides layout utilities for building responsive and consistent layouts in web applications. It is part of the Carbon Design System, which is IBM's open-source design system for digital products and experiences.

What are @carbon/layout's main functionalities?

Spacing Scale

The spacing scale provides a set of predefined spacing values that can be used to maintain consistent spacing throughout your application. The values are based on a modular scale.

const { spacing } = require('@carbon/layout');
console.log(spacing[3]); // Outputs: '1rem'

Breakpoints

Breakpoints define the various screen sizes at which your layout should adapt. These predefined breakpoints help in creating responsive designs.

const { breakpoints } = require('@carbon/layout');
console.log(breakpoints.md.width); // Outputs: '672px'

Layout Grid

The layout grid provides a set of predefined column widths that can be used to create grid-based layouts. This helps in maintaining a consistent structure across different pages.

const { layout } = require('@carbon/layout');
console.log(layout['2-3']); // Outputs: '66.66667%'

Other packages similar to @carbon/layout

Keywords

FAQs

Package last updated on 30 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc